package com.yupi.usercenter.controller;

import com.yupi.usercenter.model.ProductEntity;
import com.yupi.usercenter.util.RestResponse;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author 王博
 * @DateTime 2024-05-24 15:54
 */
@RestController
@RequestMapping("/product")
public class ProductController {

    @GetMapping("/get")
    public RestResponse<ProductEntity> getString(String name, String address ){
        return RestResponse.ok(new ProductEntity(name,address));
    }
}
